package org.meteorshower.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.domain.RoomDevices;
import org.meteorshower.service.IRoomDevicesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseBody
@RequestMapping("/api/room-devices")
public class RoomDevicesController extends BaseController<RoomDevices>{

    private final IRoomDevicesService roomDevicesService;

    @Autowired
    public RoomDevicesController(IRoomDevicesService roomDevicesService) {
        this.roomDevicesService = roomDevicesService;
    }

    @Override
    public IService<RoomDevices> getService() {
        return roomDevicesService;
    }
}
